package com.gzq.administrator.testdemo;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;

import com.gzq.administrator.testdemo.component.DaggerActivityComponet;
import com.gzq.administrator.testdemo.testbean.Student;

import javax.inject.Inject;

public class MainActivity extends AppCompatActivity {
    @Inject
    Student student;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        DaggerActivityComponet.create().inject(this);
//        DaggerActivityComponet.builder().build().inject(this);
        Toast.makeText(this, student.getName(), Toast.LENGTH_SHORT).show();

    }
}
